package com.ggk911.pharmacy_system.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ggk911.pharmacy_system.entity.OutboundDelivery;
import com.ggk911.pharmacy_system.mapper.OutboundDeliveryMapper;
import com.ggk911.pharmacy_system.service.IOutboundDeliveryService;
import org.springframework.stereotype.Service;

/**
 * @author ggk-911
 * @version 1.0 2023/4/13 12:47
 */
@Service
public class OutboundDeliveryServiceImpl extends ServiceImpl<OutboundDeliveryMapper, OutboundDelivery> implements IOutboundDeliveryService {
    /**
     * pageAd
     *
     * @param page
     * @param queryWrapper
     * @param <E>
     * @return
     */
    public <E extends IPage<OutboundDelivery>> E pageAd(E page, Wrapper<OutboundDelivery> queryWrapper) {
        return baseMapper.selectPageAd(page, queryWrapper);
    }

    /**
     * pageAdAd加强了搜索
     *
     * @param page
     * @param queryWrapper
     * @param <E>
     * @return
     */
    public <E extends IPage<OutboundDelivery>> E pageAdAd(E page, Wrapper<OutboundDelivery> queryWrapper) {
        return baseMapper.selectPageAdAd(page, queryWrapper);
    }
}
